/**
 * User: yuhao
 * Date: 15-5-18
 * Time: 上午9:05
 * 用户配置
 */
define(
    [
        "require"
    ],
    function (require) {
        return {

            /**
             * 系统服务
             */
            services:{
                geoData:"service/geodata",
                plan:"service/plan",
                data:"service/data",
                district:"service/district",
                user:"service/user",
                excel:"service/excel"
            },

            /**
             * 系统字典
             */
            dics:{
                //行政区划
                districtLevel:{
                    PROVINCE:2,
                    CITY:3,
                    COUNTY:4
                },
                dataSource:{
                    oss:2100,
                    eds:2200
                },
                planType:{
                    visual:1100,
                    market:1200
                },
                layerType:{
                    HEATMAP:"heatmap",
                    CLUSTER:"cluster",
                    CHART:"chart",
                    CUSTOM_EVALUATE:"custom-evaluate"
                }
            },

            /**
             * 地理大数据渲染接口要查询的数据id
             */
            geoRenderDataIds:[
                {"tableId":"\"adidas\".\"public\".\"eos_poi_stats\""},
                {"tableId":"\"adidas\".\"public\".\"eos_poi\""}
            ],
            clusterThreshold:2000, // 聚合点临界值

            /**
             * 系统字段
             */
            sysFields:{
                fid:"geoq_featureid",
                userid:"geoq_userid",
                provincecode:"geoq_provincecode",
                citycode:"geoq_citycode",
                countycode:"geoq_countycode",
                lng:"geoq_x",
                lat:"geoq_y",

                district:"geoq_district", //ChartLayer用到
                geo:"geometry", // OSS（存layer时geometry对应的字段名）
                region:"region(geocode)" // OSS
            },

            defaults:{    // 默认配置
                symbol:{
                    marker:{ shape:"circle", size:12, border:1, color:"#e6e600", borderColor:"#ffffff" },
                    pin:{ shape:"pin", scale:1 },
                    logo:{ shape:"logo", scale:1 },
                    picture:{ path:"", scale:1, width:24, height:24 },
                    fill:{ border:1, color:"#e6e600", borderColor:"#e1e1e1" },
                    grade:{ field:"", classify:3, color:"#e6e600", radius:{ max:45, min:15 }}, // TODO: 面数据无需radius属性，待修复...
                    types:{ field:"", size:12 }
                },
                ribbon:"Purples"
            }
        }
    });